 |
|
 |
Subject: Illegal function call and Shell function |
 |
 |
 |
Product Area: Notes Client |
 |
Technical Area: Application Development |
 |
Platform: Windows |
 |
Release: 8.5.1 |
 |
Reproducible: Always |
 |
 |
 |
 |
Hi,
I am still struggling with making the Shell function work in Lotus Notes 8.5.1 FP2.
The situation:
We have an integrator with another product, which installs a .nsf file and adds a icon to the users Lotus Notes.
In Windows XP/Notes 7/Notes 8 etc, it works fine, we forward the document from a database, it has a button on it and an executable file, the user presses the button, and the file is extracted to their PC and runs.
In Windows 7 this still doesn't work, due to problems with User Account Control (UAC). Turning off UAC resolves this first issue, but that is not really an option given the number of users.
If you use the Shell function to trigger e.g. CALC.exe for Windows Calculator, it works fine.
Presumably it works fine for other Windows programs also.
But for a customized executable, it always returns 'Illegal function call'.
Please explain the way round this problem..
Additionally, I'd like to point out the following:
If you create a button in an email with Simple Action, @Formula function, and user say @Command([Execute];"C:\\Users\\me\\AppData\\Local\\Temp\\CustomExecutableFileName.exe"), then this works as expected - that is, it gives a UAC prompt on which you can select 'Yes' and then the program runs.
(Frankly the UAC prompt is annoying to, but at least it works as Microsoft designed it this way).
The LotusScript Shell command does not give this prompt, and instead simply errors out with Illegal function call.
And you cannot run an @Command from LotusScript, unless someone knows of a way?
 
Feedback number WEBB8HMJJZ created by ~Evelyn Cisnither on 06/08/2011

Status: Open
Comments:

Illegal function call and Shell fun... (~Evelyn Cisnith... 8.Jun.11)
. . Have you tried an API call instead?... (~Zelda Ekresask... 8.Jun.11)
. . . . API scary (~Evelyn Cisnith... 9.Jun.11)
. . . . . . The R6 Forum has examples... (~Zelda Ekresask... 9.Jun.11)
. . Try using WScript.Shell instead (~Tip Opjipymanl... 8.Jun.11)
. . . . WScript.Shell (~Evelyn Cisnith... 9.Jun.11) |
|  |
|